package com.hlw.springboot.service;

import com.baomidou.mybatisplus.service.IService;
import com.hlw.springboot.entity.SysPermission;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface SysPermissionService {


    public Map<String,Object> findMenu();

    public List<SysPermission> findAll();

    public SysPermission findMenuById(String id);

    public Integer delById(Integer id);

    /* 查询角色在中间表的权限*/
    List<SysPermission> findPerByRid(@Param("rid")Integer rid);

    public Integer addPerByRid(Integer rid,Integer mid);

}
